package utility;

import java.awt.event.FocusAdapter;
import java.awt.event.FocusEvent;
import javax.swing.JTextField;

public class SelectAllWhenGainFocus extends FocusAdapter {
	public void focusGained(FocusEvent e) {
		JTextField source = (JTextField) e.getComponent();
		source.selectAll();
	}
}